package com.member;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@EnableEurekaClient
/* 扫描 controller 
 * 错误原因：Application启动类默认扫描同一级包或下一级包下的java文件，导致404错误。
 * @ComponentScan(basePackages = {"com.member.controller"})*/
public class MemberServerApp {
	/**
	 * 启动会员服务
	 * @param args
	 */
	public static void main(String[] args) {
		SpringApplication.run(MemberServerApp.class, args);
	}

}
